package com.zjxf.repository;

import com.zjxf.base.bean.po.UmsStore;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * 商铺
 *
 * @author ZhangWei
 * @date 2021/3/27/027 16:03
 */
public interface UmsStoreRepository extends JpaRepository<UmsStore, Long>, JpaSpecificationExecutor<UmsStore> {

    Optional<UmsStore> findByIdAndDeleteState(Long id, Integer deleteState);

    Optional<UmsStore> findByNameAndDeleteState(String name, Integer deleteState);
}
